
<? if(count($this->paginator)): ?>
<? foreach ($this->paginator as $value): ?>
<div class="widget">
    <div class="widget_title">
        <span class="iconsweet">8</span>
        <h5><?= $value['user_name'] . " ". $value['user_surname'];?>  <?= date('d/m/Y h:i:s', $value['date']);?></h5>
    </div>
    <div class="widget_body" style="margin: 10px;">
        <pre><?= $value['body'];?></pre>
        <? if (Zend_Auth::getInstance()->hasIdentity() && Zend_Auth::getInstance()->getIdentity()->user_role_id == 1): ?>
            
        <?endif;?>
    </div>
</div>
<? endforeach;?>


<?= $this->paginationControl($this->paginator, 'Sliding', 
                'partials/my_paginator.phtml'); ?>
<?else:?>
<div class="widget">
    <div class="widget_body" style="margin: 10px;">
        Азырынча бул маселе талкуулана элек... 
    </div>
</div>
<?endif;?>

<hr/>

<div class="widget" style="float: bottom;">
    <div class="widget_title">
        <span class="iconsweet">8</span>
        <h5><?= $this->title;?></h5>
    </div>
    <div class="widget_body">
        <form <? foreach ($this->form->getAttribs() as $key => $value) echo $key . "=" . "$value ";?>>
            <ul>
                <li style="margin-left: 15px"><div class="form_input"><?= $this->form->body;?></div></li>
                <li style="margin-left: 15px"><?= $this->form->submit;?> </li>                 
            </ul>
        </form>
    </div>
</div>